import Home from '../Modules/Main/Home.js'
import {Text, View} from "react-native";
import React from "react";
import {BottomNavigator} from "./bottomTabNavigation.js";
import Mine from '../Modules/Mine/Mine.js'
import Signed from '../Modules/Main/Signed.js'
import {navigationMethod,navigationSecond,headerRights} from "../Utils/NavigatorCommon";
export const MainRouter={

    Router: {
        screen: BottomNavigator,
        navigationOptions: ({ navigation }) => ({
            title:'湘都农创',
            ...navigationMethod,
            headerRight:headerRights(()=>{
                navigation.navigate('Mine')
                console.log(navigation)
            },'message')
        })
    },
    Mine:{
        screen: Mine,
        navigationOptions: ({ navigation }) => ({
            title:'我的',
            ...navigationMethod,
            headerLeft:headerRights(()=>{
                navigation.goBack();
            },'arrowLeft'),
            headerRight:headerRights(()=>{

                console.log(navigation)
            },'message')
        })
    },
    Signed:{
        screen: Signed,
        navigationOptions: ({ navigation }) => ({
            title:'签到',
            ...navigationSecond,
            headerLeft:headerRights(()=>{
                navigation.goBack();
            },'arrowLeft',"#666")
        })
    }
}
